package com.pls.entity;

import java.util.List;

import com.pls.data.EmployeeSeatData;

public class Locator {

	private EmployeeSeat empSeat;
	private List<EmployeeSeat> empSeats;

	// Get Employee Seats within a quadrant
	public List<EmployeeSeat> getEmployeeSeatByFloorAndQuadrant(
			String quadrant, String floor) {
		EmployeeSeatData data = new EmployeeSeatData();
		return data.getEmployeeSeatsByFloorAndQuadrant(quadrant, floor);
	}

	// Returns EmployeeSeat using employee id
	public EmployeeSeat searchEmployeeSeat(int employeeId) {
		EmployeeSeatData data = new EmployeeSeatData();
		return data.getEmployeeSeatDetails(employeeId);
	}

	// Search Employee Seat using String name
	public EmployeeSeat searchEmployeeSeat(String name) {
		return null;
	}

	/*
	 * public int updateEmployeeSeat(int employeeId, String seatCode, int
	 * seatId) {
	 * 
	 * int rowCount = 0;
	 * 
	 * EmployeeSeatData empSeatData = new EmployeeSeatData();
	 * 
	 * rowCount = empSeatData.updateEmployeeSeat(employeeId, seatCode, seatId);
	 * 
	 * if (rowCount > 0){ System.out.println("Employee Seat is updated."); }
	 * return rowCount;
	 * 
	 * }
	 */

	/*
	 * public int deleteEmployeeSeat(int employeeId, String seatCode, int
	 * seatId) {
	 * 
	 * int rowCount = 0;
	 * 
	 * EmployeeSeatData empSeatData = new EmployeeSeatData();
	 * 
	 * rowCount = empSeatData.deleteEmployeeSeat(employeeId, seatCode, seatId);
	 * 
	 * if (rowCount > 0){ System.out.println("Employee Seat is deleted."); }
	 * return rowCount;
	 * 
	 * }
	 */
}
